var client = require("../../DAOImpl/mongodb");
var dataConfig = require("../../config/database.json");
var host = dataConfig.host;
var database = dataConfig.db;
var db = new client(host, database);
exports.createDriver = function() {
	var drivers = require("../Dlocation.json");

	for(var driverIP in drivers){
		//console.log(drivers[driverIP]);
		db.insert(dataConfig.col_driver, drivers[driverIP], function(err1, err2, doc){
			if(err1 || err2){
				console.log(err1 + err2);
			}else{
				//console.log(doc);
			}
		});
	}

}